package com.chixing.day04_oop;

public class Cpu {
    private int cpuId;
    private String cpuType;
    private String cpuName;

    public Cpu(){}

    public Cpu(int cpuId, String cpuType, String cpuName) {
        this.cpuId = cpuId;
        this.cpuType = cpuType;
        this.cpuName = cpuName;
    }

    public int getCpuId() {
        return cpuId;
    }

    public void setCpuId(int cpuId) {
        this.cpuId = cpuId;
    }

    public String getCpuType() {
        return cpuType;
    }

    public void setCpuType(String cpuType) {
        this.cpuType = cpuType;
    }

    public String getCpuName() {
        return cpuName;
    }

    public void setCpuName(String cpuName) {
        this.cpuName = cpuName;
    }

    @Override
    public String toString() {
        return "Cpu{" +
                "cpuId=" + cpuId +
                ", cpuType='" + cpuType + '\'' +
                ", cpuName='" + cpuName + '\'' +
                '}';
    }
}
